<template>
	<view class="records-wrap">
		<uv-navbar title="交易记录" bg-color="rgba(0,0,0,.0)" :placeholder='true' leftIconSize="20px"
			leftIconColor="#313C56" :autoBack='true' titleStyle="font-size: 16px;font-weight: 500;color: #313c56;" />

		<uv-tabs :list="tabList" lineColor="#EB7520" activeStyle="font-size: 16px;color: #313C56;"
			inactiveStyle="font-size: 14px;color: #95A4B3;" @click=""></uv-tabs>

		<scroll-view class="scroll" :scroll-y="true">
			<view class="list-wrap">
				<view class="item" v-for="(item,index) in recordList" :key="index">
					<view class="head flex-row flex-items-center flex-between">
						<view class="type">
							{{item.unit}}充值
						</view>
						<view class="amount flex-row flex-items-end">
							<view class="num flex-row flex-items-center">
								+{{item.amount}}
							</view>
							<view class="unit">{{item.unit}}</view>
						</view>
					</view>
					<view class="row">
						充值时间：{{item.rechargeTime}}
					</view>
					<view class="row">
						到账时间：{{item.receiptTime}}
					</view>
					<view class="row">
						订单编号：{{item.num}}
					</view>
				</view>
			</view>
		</scroll-view>
		<toast ref="toast"></toast>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				tabList: [{
					name: '充值记录',
				}, {
					name: '支付记录',
				}, {
					name: '结算记录'
				}],
				recordList: [{
					unit: 'USDT',
					amount: 500,
					rechargeTime: '2024-01-12',
					receiptTime: '2024-01-12',
					num: '46457568568678',
				}, {
					unit: 'USDT',
					amount: 500,
					rechargeTime: '2024-01-12',
					receiptTime: '2024-01-12',
					num: '46457568568678',
				}, {
					unit: 'USDT',
					amount: 500,
					rechargeTime: '2024-01-12',
					receiptTime: '2024-01-12',
					num: '46457568568678',
				}, {
					unit: 'USDT',
					amount: 500,
					rechargeTime: '2024-01-12',
					receiptTime: '2024-01-12',
					num: '46457568568678',
				}, {
					unit: 'USDT',
					amount: 500,
					rechargeTime: '2024-01-12',
					receiptTime: '2024-01-12',
					num: '46457568568678',
				}, {
					unit: 'USDT',
					amount: 500,
					rechargeTime: '2024-01-12',
					receiptTime: '2024-01-12',
					num: '46457568568678',
				}, {
					unit: 'USDT',
					amount: 500,
					rechargeTime: '2024-01-12',
					receiptTime: '2024-01-12',
					num: '46457568568678',
				}, {
					unit: 'USDT',
					amount: 500,
					rechargeTime: '2024-01-12',
					receiptTime: '2024-01-12',
					num: '46457568568678',
				}, {
					unit: 'USDT',
					amount: 500,
					rechargeTime: '2024-01-12',
					receiptTime: '2024-01-12',
					num: '46457568568678',
				}, {
					unit: 'USDT',
					amount: 500,
					rechargeTime: '2024-01-12',
					receiptTime: '2024-01-12',
					num: '46457568568678',
				}, {
					unit: 'USDT',
					amount: 500,
					rechargeTime: '2024-01-12',
					receiptTime: '2024-01-12',
					num: '46457568568678',
				}]
			};
		}
	}
</script>

<style lang="scss" scoped>
	.records-wrap {
		background-color: #fff;

		.scroll {
			height: calc(100vh - 88px);

			.list-wrap {
				padding: 8px 16px 30px;
				box-sizing: border-box;

				.item {
					margin-bottom: 16px;
					width: 100%;
					height: 120px;
					padding: 12px;
					box-sizing: border-box;
					background: #F7F9FD;
					border-radius: 12px;

					.head {
						.type {
							font-size: 14px;
							color: #313C56;
						}

						.amount {

							.num {
								font-size: 20px;
								font-weight: bold;
								font-family: DIN, DIN;
								color: #000000;
							}

							.unit {
								font-size: 12px;
								color: #6B7885;
								margin: 0 0 4px 4px;
							}
						}
					}
					.row{
						margin-top: 8px;
						font-size: 12px;
						color: #95A4B3;
					}
				}
			}
		}
	}
</style>